﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Util.Pay.AlipayPay
{
    public class Config
    {
        // 应用ID,您的APPID
        public static string AppId = "2021002172653073";

        // 支付宝网关
        public static string Gatewayurl = "https://openapi.alipay.com/gateway.do";

        // 商户私钥，您的原始格式RSA私钥
        //public static string PrivateKey = "MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQC4sQC6CPw63aTT9TTDaDkQr8exBV9/wtUidEL436pq8YPK8IxD5q+R+ou4XF8OYMT/cvqgOPuE5PtjixybBKpBh0YYEJq9cOAbMYYgsrBPl2b3IwKzTBp2GdrHj8cQ036X8wSzx8aLrYbGJQLKA0N+zXA8KhyLFrYet/n9VYesenS9GTbMCD0v+xGmQajyB94eyMqt97qa1+7F+MyVUnpptj0cmllMS4TW9AqkBVPvsLolKUGoWNkiSawynH4oUY/ivI8upj3a9tKHdfWra4gSFGc2W220tIu4hzb/k/O9MTNCk/TBJxKpPLvZ4Hzz1poTjQtapAJv2ik8kzcQNciZAgMBAAECggEBALGPCeHQjZ2SRMq5rLZIVsRiGhtnzP4pM3riRxi4/z+9XTUXueH1v8kaFIVz2Lcb9YiY47Zx0e1brwtuTFwESiKhiJPOMtX51JqQLCD3aWW7avQhppD1k2MDTEAbTAgzLDutGVI1t/3FIBMStfG83YDkxQgyfCqD9SbnPOF+/uajWbhV/uV0RZinkNv7oHr79zkSp+2e6SfHjnYNUv1Lc3Y26yYMj032HMn75c2GScUbkTlcWCQoGuE4qAuTNbBsiXZcl99+sI3OULPNZioG6teFdc6XvESv7jlEIJqxsNdGMD0I1DuQmS8j6JV6lNfnsQqGYipCMN+DRPHKQr16M7kCgYEA3ZxjqWUSu1YVCUzSHp6NYDv9n/fmNCA88RuflhUxOUqywtyokbhVvW9GLoPFs0STTRJ7pf903+WHWAYu0t6FC7Wl6krxKNoNCRwSv7SXd6pegr/or3Fxe94IJQjjR00UHRT6vDn3fKRP+Akialm+PILt6mqj5JkKSsgTF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MUVKixmNkoG1P0Q+Nxs6gfssFQIFbPnrE+Wzq9ggdrEka5VeGw4yDnFWZipD0KNc+d52BDyeirTIZchyPcXl8uc7cczzeBYhYiicvVr06pToBdLb2Wd6gkKrQyO1QncAvF2c8mLqwZiuxEH3qtu8g==";

        // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
        public static string AlipayPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjorysXh5awwhG2ChjX2gMKiiYA+MeYv0sV2uzh/EsGG02KF2/Ys+hkDrmmLrkX6OZjmtc2IX0ksq5ubaHeXsWMbliD3MYTZtVHX6U1E89iz0BnjoL/KE/PTqfVxkS6rUsecDQ1KWHOPI8BOaenF1VdmBRj0k6t70vLPEzpus2bAHzeZ/aBlDbWFvl6uGXUSdd8oUxhv1vnWr4dGLlNtW2nBjeepUjtyw9h7ADWYWD/TWuJ3VRExXm0jSG2/GccBlSCsHNjsvaCSbSgi1N0ZlWLX6+wIzQraxR9DGJuoG/uPAjCZqA6Vx70CzLw5C54Is1p5th8NrERRzIyiXJph32QIDAQAB";

        // 支付宝应用公钥
        public static string AlipayAppPublicKey = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1ro6+GLUr+s3uKWqaGP8QjYago/2rZysdzQh2Pw8LK9MUcvmdl/YKRloVTi6cW7y6VpLfeRG00fxUnc+dqo8FGPyvEHRR48Aos3svPryZxbtVo5fh9uqYNc6UHQradpVhd0WYOtQ5tQYD/5ghBZKoPdiUI9qg0ZP8H1dpLA4cTUujajS4YiX5eGmMUDe0/tDH+wN1aGKNp7xZSXk7FC8x85QEWyQha+FyE8DVvSPLIl26FGRXCSyz0O/v/qc3xfrzBXaK6h878roMzE9yNF12AOT+Q2aEWKjzUxAwtVsGerEwiV7DXnRxpbk79USO4NaE+kweW+QbeqJZWW6nD1y4wIDAQAB";


        // 签名方式
        public static string SignType = "RSA2";

        // 编码格式
        public static string CharSet = "UTF-8";

        //设置证书相关参数
        public class certParams
        {
            public string AlipayPublicCertPath = "\\AliSSL\\alipayCertPublicKey_RSA2.crt";
            public string AppCertPath = "\\AliSSL\\appCertPublicKey_2021002172653073.crt";
            public string RootCertPath = "\\AliSSL\\alipayRootCert.crt";
        };
    }
}
